package com.itic.appbase.framework.type;

public enum UserStateType {
	success("1","success"),fail("0","fail");
	private String type;
	private String name;
	UserStateType(String type,String name){
		this.type = type;
		this.name = name;
	}
	
	
	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public static UserStateType getUserStateType(String type){
		UserStateType status = null;
		switch(type){
		case"1":
			status = UserStateType.success;
			break;
		case"0":
			status = UserStateType.fail;
			break;
			default:break;
		}
		return status;
	}
}
